﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;

using UnityEngine.UI;
public class GetStart : MonoBehaviour
{

    public Vector3 myValue = new Vector3(0, 0, 0);

    public Transform cubeTransform;

    public RectTransform tasksPanelTransform;

    public float myValue2 = 0;


    void Start()
    {
        //对变量做一个动画（通过差值的方式去修改一个值的变化）
        //DOTween.To(() => myValue, x => myValue = x, new Vector3(0, 0, 0), 1);

        DOTween.To(() => myValue2, x => myValue2 = x, 10f, 1);
    }


    void Update()
    {
        //cubeTransform.position = myValue;
        //tasksPanelTransform.position = myValue;

        tasksPanelTransform.localPosition = myValue;
    }
}
